<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>帮助文档</h2>
    </div>

    <div class="cf">
        <a class="btn" href="{:U('doc_add')}">新 增</a>
        <button class="btn ajax-post confirm" url="{:U('doc_del')}" target-form="ids">删 除</button>
    </div>

    <div class="data-table table-striped">
        <form class="ids">
            <table>
                <thead>
                    <tr>
                        <th class="row-selected">
                            <input class="checkbox check-all" type="checkbox">
                        </th>
                        <th>ID</th>
                        <th>标题</th>
                        <th>内容</th>
                        <th>时间</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                <volist name="data" id="menu">
                    <tr>
                        <td><input class="ids row-selected" type="checkbox" name="id[]" value="{$menu.id}"></td>
                        <td>{$menu.id}</td>
                        <td>
                            {$menu.title}
                        </td>
                        <td>
                            <div style="width:500px;height: 100px;
    overflow-x: auto;
    overflow-y: auto;">{$menu.txt}</div>
                        </td>
                        <td>{$menu.time}</td>
                        <td>
                            <a title="编辑" href="{:U('doc_edit?id='.$menu['id'])}">编辑</a>
                            <a class="confirm ajax-get" title="删除" href="{:U('doc_del?id='.$menu['id'])}">删除</a>
                        </td>
                    </tr>
                </volist>
                </tbody>
            </table>
        </form>

    </div>
</block>

<block name="script">
    <script type="text/javascript">
        $(function() {

            $('.side-sub-menu').find('a[href="{:U('index')}"]').closest('li').addClass('current');
        });
    </script>
</block>